package com.wpen.unit.infra.mybatis.system.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * NoticePo.
 * 
 * @author Wang Peng(Auto Generator)
 * @date 2023-03-19
 * @version V5.0
 */
@Setter
@Getter
@ToString
@TableName("SYS_NOTICE")
public class NoticePo implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /* 主键 [19,0] Not NULL */
    @TableId
    private Long id;
    /* 重要等级 [8,0] Not NULL */
    private String priorityLevel;
    /* 通知标题 [64,0] Not NULL */
    private String noticeTitle;
    /* 通知名称 [256,0] Not NULL */
    private String noticeName;
    /* 通知内容 [1024,0] Not NULL */
    private String noticeContext;
    /* 关联数据类型 [8,0] */
    private String relType;
    /* 关联ID [64,0] */
    private String relId;
    /* 创建时间 [19,0] Not NULL */
    private Date createTime;
    /* 时间戳 [19,0] Not NULL */
    private Timestamp updateTime;

    public NoticePo() {
        super();
    }

    /** 浅克隆 */
    @Override
    public NoticePo clone() {
        NoticePo cloneNoticePo = null;
        try {
            cloneNoticePo = (NoticePo) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneNoticePo;
    }

    /**
     * NoticeColumns.
     * 
     * @author Wang Peng(Auto Generator)
     * @date 2023-03-19
     * @version V5.0
     */
    public enum NoticeColumns {
        /** 主键**/
        ID,
        /** 重要等级**/
        PRIORITY_LEVEL,
        /** 通知标题**/
        NOTICE_TITLE,
        /** 通知名称**/
        NOTICE_NAME,
        /** 通知内容**/
        NOTICE_CONTEXT,
        /** 关联数据类型**/
        REL_TYPE,
        /** 关联ID**/
        REL_ID,
        /** 创建时间**/
        CREATE_TIME,
        /** 时间戳**/
        UPDATE_TIME;
    }
}